package org.example.thread.threadException.example;

import java.util.function.Consumer;

/**
 * @Auther:Liu
 * @Testname:App
 * @Date:2025/8/14 15:31
 */
public class App {

    public static void main(String[] args) {
        Broker broker = new Broker();
        Customer customer = new Customer(broker);
        Product product = new Product(broker);
        new Thread(customer).start();
        new Thread(product).start();
    }
}
